﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kokomo.Mirror.CliMetadata.Signatures
{
	public class PropertySignature : Signature
	{
		public PropertySignature()
		{
		}

		//public CustomModifier[] customMods;
		public TypeSpec type;
		public Param[] parameters;

		public override bool Equals(object obj)
		{
			PropertySignature other = obj as PropertySignature;
			if (other == null) return false;

			bool equals =
				(object.Equals(this.type, other.type))
				&& (this.parameters != null)
				&& (other.parameters != null)
				&& (this.parameters.SequenceEqual(other.parameters))
				;
			return equals;
		}
	}
}
